From: Jasper St. Pierre Date: Sun, 23 Dec 2012 05:47:04 +0000 (-0500) Subject: layout: Fix strut heuristics for multi-monitor X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5156 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5274166f8cd6bbd7b941eab99f99c2f604eaa749;p=gnome-shell.git layout: Fix strut heuristics for multi-monitor Spotted while going through the code. https://bugzilla.gnome.org/show_bug.cgi?id=690666 --- diff --git a/js/ui/layout.js b/js/ui/layout.js index ae828a008..9e2dee966 100644 --- a/js/ui/layout.js +++ b/js/ui/layout.js @@ -1092,7 +1092,7 @@ const Chrome = new Lang.Class({ } else if (y1 <= primary.y && y2 >= primary.y + primary.height) { if (x1 <= 0) side = Meta.Side.LEFT; - else if (x2 >= global.screen_width) + else if (x2 >= primary.x + primary.width) side = Meta.Side.RIGHT; else continue;